package com.guonl.open.api.request.waybill;

import com.guonl.open.api.validation.AtLeastOneNotEmpty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

@AtLeastOneNotEmpty(fields = {"unloadAddress", "(unloadLongitude,unloadLatitude)"}, message = "卸货地详细地址和卸货坐标,不能同时为空")
@Data
public class ApiUnloadingInfoRequest {

    @ApiModelProperty(value = "卸货地县区编码")
//    @NotBlank(message = "卸货地县区编码不能为空")
    private String unloadAreaId;

    @ApiModelProperty(value = "卸货地详细地址")
//    @NotBlank(message = "卸货地详细地址不能为空")
    private String unloadAddress;

//    @ApiModelProperty(value = "卸货人姓名")
//    @NotBlank(message = "卸货人姓名不能为空")
//    private String dischargerName;
//
//    @ApiModelProperty(value = "卸货电话")
//    @NotBlank(message = "卸货电话不能为空")
//    private String unloadPhone;

    @ApiModelProperty(value = "卸货时间")
    @NotBlank(message = "卸货时间不能为空")
    private String unloadingTime;

    @ApiModelProperty(value = "卸货图片")
    @NotBlank(message = "卸货图片不能为空")
    private String unloadImage;

    @ApiModelProperty(value = "卸货质量 KG")
//    @DecimalMin(value = "0.0", message = "卸货质量不能小于0")
//    @NotNull(message = "卸货质量不能为空")
    private BigDecimal unloadNumber;

    @ApiModelProperty(value = "卸货坐标经度")
//    @NotBlank(message = "卸货坐标经度不能为空")
    private String unloadLongitude;

    @ApiModelProperty(value = "卸货坐标纬度")
//    @NotBlank(message = "卸货坐标纬度不能为空")
    private String unloadLatitude;


}
